
/**
 * 界面帧循环组件
 * @class ViewUpdater
 * @summary 继承cc.Component, 只需要prefabs中挂载
 * @author IGER
 */

cc.Class({
    extends: cc.Component,

    looper : null,

    onDestroy()
    {
        if (this.looper)
        {
            this.looper = null
        }
    },

    update(dt)
    {
        if (this.looper)
        {
            this.looper(dt)
        }
    },
})
